.class public abstract Lcom/xingbook/ui/a/c;
.super Landroid/view/ViewGroup;

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Landroid/view/View$OnTouchListener;


# instance fields
.field protected a:Lcom/xingbook/c/e;

.field protected b:Lcom/xingbook/ui/b/a;

.field protected c:Lcn/a/a/b/b;

.field protected d:I

.field protected e:Landroid/content/Context;

.field protected f:I

.field protected g:I

.field protected h:I

.field protected i:I

.field protected j:Z

.field protected k:Z

.field protected l:Z

.field protected m:Z

.field private n:Z

.field private o:Z

.field private p:Z

.field private q:I


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/xingbook/ui/b/a;Lcn/a/a/b/b;Lcom/xingbook/c/e;)V
    .locals 10
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    const/4 v9, 0x4

    const/4 v8, 0x1

    const/4 v2, 0x0

    invoke-direct {p0, p1}, Landroid/view/ViewGroup;-><init>(Landroid/content/Context;)V

    iput-boolean v2, p0, Lcom/xingbook/ui/a/c;->j:Z

    iput-boolean v2, p0, Lcom/xingbook/ui/a/c;->k:Z

    iput-boolean v2, p0, Lcom/xingbook/ui/a/c;->l:Z

    iput-boolean v8, p0, Lcom/xingbook/ui/a/c;->n:Z

    iput-boolean v2, p0, Lcom/xingbook/ui/a/c;->o:Z

    iput-boolean v2, p0, Lcom/xingbook/ui/a/c;->p:Z

    iput-boolean v2, p0, Lcom/xingbook/ui/a/c;->m:Z

    iput-object p1, p0, Lcom/xingbook/ui/a/c;->e:Landroid/content/Context;

    iput-object p2, p0, Lcom/xingbook/ui/a/c;->b:Lcom/xingbook/ui/b/a;

    iput-object p3, p0, Lcom/xingbook/ui/a/c;->c:Lcn/a/a/b/b;

    invoke-virtual {p3}, Lcn/a/a/b/b;->k()I

    move-result v0

    iput v0, p0, Lcom/xingbook/ui/a/c;->q:I

    invoke-virtual {p3}, Lcn/a/a/b/b;->j()I

    move-result v0

    iput v0, p0, Lcom/xingbook/ui/a/c;->d:I

    iput-object p4, p0, Lcom/xingbook/ui/a/c;->a:Lcom/xingbook/c/e;

    invoke-virtual {p3}, Lcn/a/a/b/b;->f()Lcn/a/a/d/e;

    move-result-object v0

    invoke-virtual {v0}, Lcn/a/a/d/e;->f()Z

    move-result v0

    iput-boolean v0, p0, Lcom/xingbook/ui/a/c;->k:Z

    invoke-virtual {p3}, Lcn/a/a/b/b;->d()Lcn/a/a/d/d;

    move-result-object v0

    invoke-virtual {v0}, Lcn/a/a/d/d;->a()Lcn/a/a/d/a;

    move-result-object v0

    invoke-virtual {p4}, Lcom/xingbook/c/e;->b()Z

    move-result v1

    if-eqz v1, :cond_e

    invoke-virtual {p4, v0}, Lcom/xingbook/c/e;->a(Lcn/a/a/d/a;)Lcn/a/a/d/a;

    move-result-object v0

    move-object v1, v0

    :goto_0
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v3, 0xb

    if-lt v0, v3, :cond_0

    invoke-virtual {p3}, Lcn/a/a/b/b;->d()Lcn/a/a/d/d;

    move-result-object v0

    invoke-virtual {v0}, Lcn/a/a/d/d;->b()I

    move-result v0

    if-eqz v0, :cond_0

    div-int/lit8 v0, v0, 0x64

    int-to-float v0, v0

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/a/c;->setRotation(F)V

    iput-boolean v8, p0, Lcom/xingbook/ui/a/c;->j:Z

    :cond_0
    iget-boolean v0, p0, Lcom/xingbook/ui/a/c;->j:Z

    if-nez v0, :cond_1

    invoke-virtual {p3}, Lcn/a/a/b/b;->e()[Lcn/a/a/d/i;

    move-result-object v0

    if-eqz v0, :cond_1

    invoke-virtual {p3}, Lcn/a/a/b/b;->e()[Lcn/a/a/d/i;

    move-result-object v4

    array-length v5, v4

    move v3, v2

    :goto_1
    if-lt v3, v5, :cond_4

    :cond_1
    :goto_2
    iget-boolean v0, p0, Lcom/xingbook/ui/a/c;->k:Z

    if-nez v0, :cond_2

    invoke-virtual {p3}, Lcn/a/a/b/b;->f()Lcn/a/a/d/e;

    move-result-object v0

    invoke-virtual {v0}, Lcn/a/a/d/e;->d()Z

    move-result v0

    if-eqz v0, :cond_a

    :cond_2
    invoke-virtual {p0, v2}, Lcom/xingbook/ui/a/c;->setmIntercept(Z)V

    :cond_3
    :goto_3
    iget v0, v1, Lcn/a/a/d/a;->c:I

    iput v0, p0, Lcom/xingbook/ui/a/c;->f:I

    iget v0, v1, Lcn/a/a/d/a;->d:I

    iput v0, p0, Lcom/xingbook/ui/a/c;->g:I

    iget v0, v1, Lcn/a/a/d/a;->a:I

    iput v0, p0, Lcom/xingbook/ui/a/c;->i:I

    iget v0, v1, Lcn/a/a/d/a;->b:I

    iput v0, p0, Lcom/xingbook/ui/a/c;->h:I

    return-void

    :cond_4
    aget-object v0, v4, v3

    invoke-virtual {v0}, Lcn/a/a/d/i;->b()I

    move-result v6

    if-eq v6, v9, :cond_5

    const/4 v7, 0x5

    if-ne v6, v7, :cond_6

    :cond_5
    iput-boolean v8, p0, Lcom/xingbook/ui/a/c;->j:Z

    goto :goto_2

    :cond_6
    if-nez v6, :cond_8

    invoke-virtual {v0}, Lcn/a/a/d/i;->e()Ljava/util/ArrayList;

    move-result-object v0

    if-eqz v0, :cond_8

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v6

    :cond_7
    invoke-interface {v6}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_9

    :goto_4
    iget-boolean v0, p0, Lcom/xingbook/ui/a/c;->j:Z

    if-nez v0, :cond_1

    :cond_8
    add-int/lit8 v0, v3, 0x1

    move v3, v0

    goto :goto_1

    :cond_9
    invoke-interface {v6}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/animation/Animation;

    instance-of v0, v0, Landroid/view/animation/RotateAnimation;

    if-eqz v0, :cond_7

    iput-boolean v8, p0, Lcom/xingbook/ui/a/c;->j:Z

    goto :goto_4

    :cond_a
    invoke-virtual {p3}, Lcn/a/a/b/b;->g()[Lcn/a/a/d/c;

    move-result-object v3

    if-eqz v3, :cond_3

    array-length v0, v3

    if-lez v0, :cond_3

    array-length v4, v3

    move v0, v2

    :goto_5
    if-ge v0, v4, :cond_3

    aget-object v2, v3, v0

    invoke-virtual {v2}, Lcn/a/a/d/c;->a()I

    move-result v5

    if-ne v5, v9, :cond_c

    iput-boolean v8, p0, Lcom/xingbook/ui/a/c;->o:Z

    iget-boolean v2, p0, Lcom/xingbook/ui/a/c;->p:Z

    if-nez v2, :cond_3

    :cond_b
    add-int/lit8 v0, v0, 0x1

    goto :goto_5

    :cond_c
    invoke-virtual {v2}, Lcn/a/a/d/c;->a()I

    move-result v5

    const/4 v6, 0x3

    if-eq v5, v6, :cond_d

    invoke-virtual {v2}, Lcn/a/a/d/c;->a()I

    move-result v2

    const/4 v5, 0x2

    if-ne v2, v5, :cond_b

    :cond_d
    iput-boolean v8, p0, Lcom/xingbook/ui/a/c;->p:Z

    iget-boolean v2, p0, Lcom/xingbook/ui/a/c;->o:Z

    if-eqz v2, :cond_b

    goto :goto_3

    :cond_e
    move-object v1, v0

    goto/16 :goto_0
.end method


# virtual methods
.method public a(II)Z
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/a/c;->c:Lcn/a/a/b/b;

    invoke-virtual {v0}, Lcn/a/a/b/b;->i()I

    move-result v0

    if-ne v0, p2, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/a/c;->c:Lcn/a/a/b/b;

    invoke-virtual {v0}, Lcn/a/a/b/b;->c()I

    move-result v0

    if-ne v0, p1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public c()V
    .locals 5

    iget-object v0, p0, Lcom/xingbook/ui/a/c;->c:Lcn/a/a/b/b;

    invoke-virtual {v0}, Lcn/a/a/b/b;->f()Lcn/a/a/d/e;

    move-result-object v0

    invoke-virtual {v0}, Lcn/a/a/d/e;->c()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/xingbook/ui/a/c;->clearAnimation()V

    const/4 v0, 0x4

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/a/c;->setVisibility(I)V

    :goto_0
    iget v0, p0, Lcom/xingbook/ui/a/c;->f:I

    iget v1, p0, Lcom/xingbook/ui/a/c;->g:I

    iget v2, p0, Lcom/xingbook/ui/a/c;->i:I

    iget v3, p0, Lcom/xingbook/ui/a/c;->f:I

    add-int/2addr v2, v3

    iget v3, p0, Lcom/xingbook/ui/a/c;->h:I

    iget v4, p0, Lcom/xingbook/ui/a/c;->g:I

    add-int/2addr v3, v4

    invoke-virtual {p0, v0, v1, v2, v3}, Lcom/xingbook/ui/a/c;->layout(IIII)V

    return-void

    :cond_0
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/a/c;->setVisibility(I)V

    goto :goto_0
.end method

.method public d()V
    .locals 5

    iget v0, p0, Lcom/xingbook/ui/a/c;->q:I

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/a/c;->b:Lcom/xingbook/ui/b/a;

    iget v1, p0, Lcom/xingbook/ui/a/c;->d:I

    iget v2, p0, Lcom/xingbook/ui/a/c;->q:I

    invoke-virtual {v0, v1, v2}, Lcom/xingbook/ui/b/a;->b(II)Lcn/a/a/d/i;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-static {}, Landroid/os/Message;->obtain()Landroid/os/Message;

    move-result-object v1

    const/16 v2, 0x10

    iput v2, v1, Landroid/os/Message;->what:I

    iget v2, p0, Lcom/xingbook/ui/a/c;->d:I

    iput v2, v1, Landroid/os/Message;->arg1:I

    iput-object v0, v1, Landroid/os/Message;->obj:Ljava/lang/Object;

    iget-object v2, p0, Lcom/xingbook/ui/a/c;->b:Lcom/xingbook/ui/b/a;

    iget-object v2, v2, Lcom/xingbook/ui/b/a;->m:Landroid/os/Handler;

    invoke-virtual {v0}, Lcn/a/a/d/i;->f()I

    move-result v0

    int-to-long v3, v0

    invoke-virtual {v2, v1, v3, v4}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z

    :cond_0
    iget-boolean v0, p0, Lcom/xingbook/ui/a/c;->n:Z

    if-eqz v0, :cond_2

    iget-boolean v0, p0, Lcom/xingbook/ui/a/c;->o:Z

    if-eqz v0, :cond_1

    invoke-virtual {p0, p0}, Lcom/xingbook/ui/a/c;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    :cond_1
    iget-boolean v0, p0, Lcom/xingbook/ui/a/c;->p:Z

    if-eqz v0, :cond_2

    invoke-virtual {p0, p0}, Lcom/xingbook/ui/a/c;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    :cond_2
    return-void
.end method

.method public e()V
    .locals 2

    const/4 v1, 0x0

    iget-boolean v0, p0, Lcom/xingbook/ui/a/c;->n:Z

    if-eqz v0, :cond_1

    iget-boolean v0, p0, Lcom/xingbook/ui/a/c;->o:Z

    if-eqz v0, :cond_0

    invoke-virtual {p0, v1}, Lcom/xingbook/ui/a/c;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    :cond_0
    iget-boolean v0, p0, Lcom/xingbook/ui/a/c;->p:Z

    if-eqz v0, :cond_1

    invoke-virtual {p0, v1}, Lcom/xingbook/ui/a/c;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    :cond_1
    return-void
.end method

.method public f()V
    .locals 0

    return-void
.end method

.method public g()V
    .locals 1

    :try_start_0
    invoke-virtual {p0}, Lcom/xingbook/ui/a/c;->e()V

    invoke-virtual {p0}, Lcom/xingbook/ui/a/c;->f()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-void

    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public getBaseItem()Lcn/a/a/b/b;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/a/c;->c:Lcn/a/a/b/b;

    return-object v0
.end method

.method public getItemGroup()I
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/a/c;->c:Lcn/a/a/b/b;

    invoke-virtual {v0}, Lcn/a/a/b/b;->i()I

    move-result v0

    return v0
.end method

.method public getItemType()I
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/a/c;->c:Lcn/a/a/b/b;

    invoke-virtual {v0}, Lcn/a/a/b/b;->c()I

    move-result v0

    return v0
.end method

.method public getmBaseItem()Lcn/a/a/b/b;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/a/c;->c:Lcn/a/a/b/b;

    return-object v0
.end method

.method public h()Z
    .locals 4

    const/4 v3, 0x0

    iget-object v0, p0, Lcom/xingbook/ui/a/c;->b:Lcom/xingbook/ui/b/a;

    iget-object v1, p0, Lcom/xingbook/ui/a/c;->c:Lcn/a/a/b/b;

    invoke-virtual {v1}, Lcn/a/a/b/b;->i()I

    move-result v1

    iget-object v2, p0, Lcom/xingbook/ui/a/c;->c:Lcn/a/a/b/b;

    invoke-virtual {v2}, Lcn/a/a/b/b;->j()I

    move-result v2

    invoke-virtual {v0, v1, v2, v3}, Lcom/xingbook/ui/b/a;->b(III)V

    invoke-virtual {p0, v3}, Lcom/xingbook/ui/a/c;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/ui/a/c;->b:Lcom/xingbook/ui/b/a;

    iget v1, p0, Lcom/xingbook/ui/a/c;->d:I

    invoke-virtual {v0, v1, v3}, Lcom/xingbook/ui/b/a;->a(II)Z

    move-result v0

    return v0
.end method

.method public i()Z
    .locals 3

    const/4 v2, 0x4

    invoke-virtual {p0}, Lcom/xingbook/ui/a/c;->getAnimation()Landroid/view/animation/Animation;

    move-result-object v0

    if-eqz v0, :cond_0

    new-instance v1, Lcom/xingbook/ui/a/d;

    invoke-direct {v1, p0}, Lcom/xingbook/ui/a/d;-><init>(Lcom/xingbook/ui/a/c;)V

    invoke-virtual {v0, v1}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    invoke-virtual {v0}, Landroid/view/animation/Animation;->cancel()V

    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/a/c;->setAnimation(Landroid/view/animation/Animation;)V

    invoke-virtual {p0, v2}, Lcom/xingbook/ui/a/c;->setVisibility(I)V

    :goto_0
    iget-object v0, p0, Lcom/xingbook/ui/a/c;->b:Lcom/xingbook/ui/b/a;

    iget v1, p0, Lcom/xingbook/ui/a/c;->d:I

    const/4 v2, 0x1

    invoke-virtual {v0, v1, v2}, Lcom/xingbook/ui/b/a;->a(II)Z

    move-result v0

    return v0

    :cond_0
    invoke-virtual {p0, v2}, Lcom/xingbook/ui/a/c;->setVisibility(I)V

    goto :goto_0
.end method

.method public j()Z
    .locals 1

    invoke-virtual {p0}, Lcom/xingbook/ui/a/c;->getVisibility()I

    move-result v0

    if-nez v0, :cond_0

    invoke-virtual {p0}, Lcom/xingbook/ui/a/c;->i()Z

    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_0
    invoke-virtual {p0}, Lcom/xingbook/ui/a/c;->h()Z

    const/4 v0, 0x1

    goto :goto_0
.end method

.method protected k()V
    .locals 0

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 3

    iget-boolean v0, p0, Lcom/xingbook/ui/a/c;->k:Z

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/xingbook/ui/a/c;->k()V

    :cond_0
    iget-object v0, p0, Lcom/xingbook/ui/a/c;->b:Lcom/xingbook/ui/b/a;

    iget v1, p0, Lcom/xingbook/ui/a/c;->d:I

    const/4 v2, 0x4

    invoke-virtual {v0, v1, v2}, Lcom/xingbook/ui/b/a;->a(II)Z

    return-void
.end method

.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/xingbook/ui/a/c;->n:Z

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    invoke-super {p0, p1}, Landroid/view/ViewGroup;->onInterceptTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v0

    goto :goto_0
.end method

.method protected onLayout(ZIIII)V
    .locals 0

    return-void
.end method

.method protected onMeasure(II)V
    .locals 3

    const/4 v1, 0x0

    move v0, v1

    :goto_0
    invoke-virtual {p0}, Lcom/xingbook/ui/a/c;->getChildCount()I

    move-result v2

    if-lt v0, v2, :cond_0

    invoke-super {p0, p1, p2}, Landroid/view/ViewGroup;->onMeasure(II)V

    return-void

    :cond_0
    invoke-virtual {p0, v0}, Lcom/xingbook/ui/a/c;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    invoke-virtual {v2, v1, v1}, Landroid/view/View;->measure(II)V

    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 3

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :goto_0
    const/4 v0, 0x0

    return v0

    :pswitch_0
    iget-object v0, p0, Lcom/xingbook/ui/a/c;->b:Lcom/xingbook/ui/b/a;

    iget v1, p0, Lcom/xingbook/ui/a/c;->d:I

    const/4 v2, 0x2

    invoke-virtual {v0, v1, v2}, Lcom/xingbook/ui/b/a;->a(II)Z

    :pswitch_1
    iget-object v0, p0, Lcom/xingbook/ui/a/c;->b:Lcom/xingbook/ui/b/a;

    iget v1, p0, Lcom/xingbook/ui/a/c;->d:I

    const/4 v2, 0x3

    invoke-virtual {v0, v1, v2}, Lcom/xingbook/ui/b/a;->a(II)Z

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method public setLayout(Lcom/xingbook/anima/d;)V
    .locals 5

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/ui/a/c;->m:Z

    iget v0, p1, Lcom/xingbook/anima/d;->a:F

    float-to-int v0, v0

    iget v1, p1, Lcom/xingbook/anima/d;->b:F

    float-to-int v1, v1

    iget v2, p1, Lcom/xingbook/anima/d;->a:F

    float-to-int v2, v2

    iget v3, p0, Lcom/xingbook/ui/a/c;->i:I

    add-int/2addr v2, v3

    iget v3, p1, Lcom/xingbook/anima/d;->b:F

    float-to-int v3, v3

    iget v4, p0, Lcom/xingbook/ui/a/c;->h:I

    add-int/2addr v3, v4

    invoke-virtual {p0, v0, v1, v2, v3}, Lcom/xingbook/ui/a/c;->layout(IIII)V

    return-void
.end method

.method public setmIntercept(Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/xingbook/ui/a/c;->n:Z

    return-void
.end method
